
import 'package:agro_sklad_new/feature/presentations/fact/view/fact_view.dart';
import 'package:agro_sklad_new/feature/presentations/reports/view/reports_view.dart';
import 'package:agro_sklad_new/feature/presentations/settings/view/settings_view.dart';
import 'package:agro_sklad_new/feature/presentations/task/view/task_view.dart';
import 'package:get/get.dart';

import '../presentations/home/view/home_view.dart';

part 'app_routes.dart';

class AppPages {
  static const INITIAL = Routes.HOME;

  static final routes = [
    GetPage(
      name: Routes.HOME,
      transition: Transition.fade,
      transitionDuration: const Duration(milliseconds: 500),
      page: () => const HomeView(),
    ),
    GetPage(
      name: Routes.FACT,
      transition: Transition.downToUp,
      transitionDuration: const Duration(milliseconds: 500),
      page: () => const FactView(),
    ),
    GetPage(
      name: Routes.TASK,
      transition: Transition.downToUp,
      transitionDuration: const Duration(milliseconds: 500),
      page: () => const TaskView(),
    ),
    GetPage(
      name: Routes.REPORTS,
      transition: Transition.downToUp,
      transitionDuration: const Duration(milliseconds: 500),
      page: () => const ReportsView(),
    ),
    GetPage(
      name: Routes.SETTINGS,
      transition: Transition.downToUp,
      transitionDuration: const Duration(milliseconds: 500),
      page: () => const SettingsView(),
    ),
  ];
}
